#include"SQ.h"
void TestStack()
{
	Stack St;
	St.StackPushData(1);
	St.StackPushData(2);
	St.StackPushData(3);
	St.StackPushData(4);
	St.StackPushData(5);
	St.StackPrint();
	int ret = St.GetFrontData();
	cout << "ret=" << ret << endl;
	St.StackPopData();
	St.StackPrint();

}
void TestQueue()
{
	Queue Qu;
	Qu.QueuePush(5);
	Qu.QueuePush(4);
	Qu.QueuePush(3);
	Qu.QueuePush(2);
	Qu.QueuePush(1);
	int ret = Qu.QueuePop();
	cout << ret << " ";
	ret = Qu.QueuePop();
	cout << ret << " ";
	ret = Qu.QueuePop();
	cout << ret << " ";
	ret = Qu.QueuePop();
	cout << ret <<endl;
	if (Qu.EmptyQueue())
	{
		cout << "Queue is empty" << endl;
	}
	else
	{
		cout << "Queue is not empty" << endl;
	}
	ret = Qu.QueuePop();
	cout << ret <<endl;
	if (Qu.EmptyQueue())
	{
		cout << "Queue is empty" << endl;
	}
	else
	{
		cout << "Queue is not empty" << endl;
	}
}
int main()
{
	//TestStack();
	TestQueue();
	return 0;
}